package com.cadre.common.utils.oldutil;

import java.util.HashMap;
import java.util.Map;

/* loaded from: CellHandlerFactory.class */
public class CellHandlerFactory {
    static Map<String, CellHandler> operationMap = new HashMap();

    static {
        operationMap.put("default", new DefaultHandler());
        operationMap.put("a01_a1701", new JianliCellHandler());
        operationMap.put("a01_age", new AgeHandler());
        operationMap.put("a0171_a", new PhotoHandler());
        operationMap.put("a01_a0184a", new RudangHandler());
        operationMap.put("quanrizhi", new XueliHandler());
        operationMap.put("zaizi", new XueliHandler());
        operationMap.put("a01_a0814", new XuexiaoHandler());
        operationMap.put("a01_a0903", new XuexiaoHandler());
    }

    public static CellHandler getHandler(String type) {
        if (type.startsWith("a01_date")) {
            return new DateHandler();
        }
        return operationMap.get(type) == null ? new DefaultHandler() : operationMap.get(type);
    }
}
